package note.simplefactory;

import note.simplefactory.factory.Nvwa;
import note.simplefactory.product.Person;

/**
* @Author: WYF
* @Description: 抽象工厂模式的测试
* @Create: 2020/4/6 16:13
* @Version: 1.0
*/
public class TestFactory {
    public static void main(String[] args) {
        Nvwa factory = new Nvwa();
        Person man = factory.makePerson("Man");
        Person woman = factory.makePerson("Woman");
        //Person error = factory.makePerson("manWoman");
    }
}
